<#import "/layout.html" as c>
    <#import "/list_layout.html" as list>
        <#assign alertList = []/>
        <@c.html title="Index">
        <!================== 开始页面级CSS调用 ================== &ndash;&gt;-->
        <link href="${pluginsRoot}bootstrap-wizard/css/bwizard.min.css" rel="stylesheet"/>
        <!-- 日历控件 -->
        <link href="${pluginsRoot}/jquery.dtGrid/dependents/datePicker/skin/WdatePicker.css" rel="stylesheet"/>
        <link href="${pluginsRoot}/jquery.dtGrid/dependents/datePicker/skin/default/datepicker.css" rel="stylesheet"/>
        <!-- ================== 结束页面级CSS调用 ================== &ndash;&gt;-->
        <@list.html title="策略委托中" subTitle="策略委托中" alertList=alertList permi="" addBtn=false searchHint="请输入用户名/策略号/代理商进行搜索">

        <!-- 开始用户权限参数 &ndash;&gt;-->
        <@shiro.hasPermission name="sys:order:entrust:deal">
        <input type="hidden" id="orderEntrust" value="1"/>
        </@shiro.hasPermission>
        <@shiro.hasPermission name="sys:order:cancel">
        <input type="hidden" id="orderCancel" value="1"/>
        </@shiro.hasPermission>

<!-- 开启平仓设置模态窗口 -->
<div class="modal fade" id="editModal" tabindex="-1" role="dialog">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title"> 开仓 <a class="btn btn-info btn-xs m-l-5" role="button" data-toggle="collapse" href="#OperationTips" aria-expanded="true" title="操作提示"><i class="fa fa-exclamation"></i> 提示 </a> </h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal form-bordered p-0" action="${adminRoot}order/json/entrustDeal" id="editForm" method="post" autocomplete="off" data-parsley-validate="true">
                    <input type="hidden" name="id" value="">
                    <div class="form-group">
                        <label class="control-label col-md-2 col-sm-3">开仓数量&nbsp;:<i class="f-s-14 text-danger">*</i>&nbsp;:</label>
                        <div class="col-md-9 col-sm-8">
                            <input type="number" class="form-control" name="openAmount" autocomplete="off" placeholder="请输入开仓数量，只能填写数字" data-tip="tooltip" data-placement="auto"
                                   data-original-title="必填项，只能填写数字1-10个字符"
                                   data-parsley-required="true"
                                   data-parsley-length="[1, 10]"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-2 col-sm-3">开仓价格&nbsp;:<i class="f-s-14 text-danger">*</i>&nbsp;:</label>
                        <div class="col-md-9 col-sm-8">
                            <input type="text" class="form-control" name="openPrice" autocomplete="off" placeholder="请输入开仓价格，只能填写数字" data-tip="tooltip" data-placement="auto"
                                   data-original-title="必填项，只能填写数字1-10个字符"
                                   data-parsley-required="true"
                                   data-parsley-length="[1, 10]"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-2 col-sm-3">开仓成交编号&nbsp;:<i class="f-s-14 text-danger">*</i>&nbsp;:</label>
                        <div class="col-md-9 col-sm-8">
                            <input type="text" class="form-control" name="openBusiNo" autocomplete="off" placeholder="请输入开仓成交编号" data-tip="tooltip" data-placement="auto"
                                   data-original-title="开仓成交编号必填项"
                                   data-parsley-required="true"
                                   data-parsley-length="[1, 20]"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-2 col-sm-3">开仓成交时间&nbsp;:<i class="f-s-14 text-danger">*</i>&nbsp;:</label>
                        <div class="col-md-9 col-sm-8">
                            <input id = "startTimeStr" type="text" name="openTime" class="form-control J-date-start inline-block w140" nc-format=""   data-parsley-required="true" format="yyyy-MM-dd HH:mm:ss"
                                   placeholder="请选择开仓时间"  onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'});">
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer"><a href="javascript:;" class="btn btn-white" data-dismiss="modal">放弃操作</a><a href="javascript:;" class="btn btn-success" data-loading-text="Loading..." nc-ajax-submit-target="editForm" nc-ajax-submit>确认提交</a></div>
        </div>
    </div>
</div>
<!-- 结束平仓设置模态窗口 -->

</@list.html>
<!-- ================== 开始页面级JavaScrip调用 ================== &ndash;&gt;-->
<script src="${pluginsRoot}bootstrap-wizard/js/bwizard.js"></script>
<!-- 日历控件 -->
<script src="${pluginsRoot}/jquery.dtGrid/dependents/datePicker/WdatePicker.js" defer="defer"></script>
<script src="${jsRoot}order/order_entrust.handle.js"></script>
<!-- ================== 结束页面级JavaScrip调用 ================== -->
</@c.html>